home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 530 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: Michael Cook <mcook@cognex.com>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: typedef not strong
  5. Date: 18 Feb 1996 21:46:16 GMT
  6. Organization: Cognex Corporation, Natick, Massachusetts
  7. Sender: mcook@cognex.com
  8. Approved: clamage@eng.sun.com (comp.std.c++)
  9. Message-ID: <r4d97clcgj.fsf@erawan.cognex.com>
  10. References: <4g5sm4$dtt@natasha.rmii.com>
  11. NNTP-Posting-Host: taumet.eng.sun.com
  12. Content-Type: text
  13. X-Nntp-Posting-Host: erawan.cognex.com
  14. X-Newsreader: September Gnus v0.38/Emacs 19.30
  15. Content-Length: 364
  16. Originator: clamage@taumet
  17.  
  18. >>>>> "RP" == Robert Payne <rpayne@rainbow.rmii.com> writes:
  19.  
  20.  RP> Why has C++ stayed with the weak typedef?  It has always seemed to
  21.  RP> me that it should provide a new type and not just a synomym.
  22.  
  23. C++ /has/ a mechanism for creating new types: `class'.
  24. `typedef' is just a fancy `#define'--and I think it's clear from K&R that
  25. that's all it was intended to be.
  26.  
  27. [ To submit articles: Try just posting with your newsreader.  If that fails,
  28.               use mailto:std-c++@ncar.ucar.edu
  29.   FAQ:    http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  30.   Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  31.   Comments? mailto:std-c++-request@ncar.ucar.edu
  32. ]
  33.